package gaoyijiankao;

import java.util.Comparator;
import java.util.Map;

public class SortRuler implements Comparator<Map<String,Object>> {

    @Override
    public int compare(Map<String, Object> o1, Map<String, Object> o2) {
        int studentID1=Integer.parseInt(o1.get("学号").toString());
        int studentID2=Integer.parseInt(o2.get("学号").toString());
        return studentID1-studentID2;
    }
}
